package net.ywd.url;

import net.ywd.url.entity.RegisterDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ye_Wenda
 * @Date 4/7/2017
 */
@RestController
@RequestMapping("/url")
public class UrlController {

    @PostMapping("/test")
    public String test(@RequestBody RegisterDto registerDto) {
        return registerDto.toString();
    }
}
